package com.dy.drp.service;

import com.dy.drp.dto.UserDto;
import com.dy.drp.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dy.drp.util.PageUtil;
import com.dy.drp.util.SelectUtil;
import com.dy.drp.vo.UserAddVo;
import com.dy.drp.vo.UserVo;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dy
 * @since 2022-04-02
 */
public interface IUserService extends IService<User> {
    UserVo getOneUserAndPowerByUser(User user);

    PageUtil<UserDto> selectOnePageUser(PageUtil<UserDto> pageUtil);

    PageUtil<UserDto> selectOnePageUserByInfo(SelectUtil selectUtil);

    boolean insertUser(UserDto userDto);

    boolean deleteUser(String userName);

    boolean updateUserRole(UserDto userDto);

    UserDto selectOneUserByName(String userName);
}
